<nav class="navbar-default navbar-static-side" role="navigation">
    <div class="sidebar-collapse">
        <ul class="nav metismenu" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element text-center"> <span>
                    <img style="width:50%" alt="image" class="img-circle" src="__PUBLIC__/admin/img/1.jpg" />
                     </span>
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                    <span class="clear"> <span class="block m-t-xs"> <strong class="font-bold">
                    {$_SESSION['admin_name']}</strong>
                     </span></span> </a>
                </div>
                <div class="logo-element">
                   <span>{$_SESSION['admin_name']}</span>
                </div>
            </li>
            <li <if condition="CONTROLLER_NAME eq Index ">class="active"</if>>
                <a href="{:U('admin/index/index')}"><i class="fa fa-home"></i><span class="nav-label">主页</span></a>
            </li>
            <li <if condition="CONTROLLER_NAME eq Order ">class="active"</if>>
                <a href="{:U('admin/order/index')}"><i class="fa fa-edit"></i><span class="nav-label">订单管理</span></a>
            </li>
            <li <if condition="CONTROLLER_NAME eq Catalog ">class="active"</if>>
                <a href=""><i class="fa fa-th-list"></i><span class="nav-label">分类管理</span><span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li><a href="{:U('admin/catalog/index')}">分类管理</a></li>
                    <li><a href="{:U('admin/product/index')}">商品管理</a></li>
                </ul>
            </li>
            <li <if condition="CONTROLLER_NAME eq Product ">class="active"</if>>
                <a href="{:U('admin/product/index')}"><i class="fa fa-shopping-cart"></i><span class="nav-label">商品管理</span></a>
            </li>
            <li <if condition="CONTROLLER_NAME eq User ">class="active"</if>>
                <a href="{:U('admin/user/index')}"><i class="fa fa-group"></i><span class="nav-label">会员管理</span></a>
            </li>
            <li <if condition="CONTROLLER_NAME eq Website ">class="active"</if>>
                <a href=""><i class="fa fa-wrench"></i><span class="nav-label">网站设置</span></a>
            </li>
        </ul>
    </div>
</nav>